#define _CRT_SECURE_NO_WARNINGS
#include"Stack.h"

void Test()
{
	ST s;
	InitST(&s);

	PushST(&s, 1);
	PushST(&s, 2);

	printf("%d\n", SizeST(&s));

	PushST(&s, 5);
	PushST(&s, 6);

	while (!EmptyST(&s))
	{
		printf("%d ", TopST(&s));
		PopST(&s);
	}


	DestrotST(&s);
}


int main()
{
	Test();
	return 0;
}